rc.local
(/etc/rc.local)/etc/rc.local is a script file belonging to the operating system. When the system boots, the rc.local is executed, after all the normal system services have started, although services in some cases, can be set to start after rc.local.
The DINGO-Stack installation will add some lines to /etc/rc.local, with different purposes.
- One line will make sure that the DINGO related environmental variables are set. (/etc/profile.d/dingo.sh)
- Another line will generate a SSL certificate for specific IP's and hostnames. (related to HTTPS) (/opt/GoIoT/DinGo/bin/ssl/rn_auto_create_self_signed_for_ip.sh)
If the network package for the DINGO-Stack is also installed, then it will do some more configurations. It will first take a backup of the rc.local file and then add some additional lines.
- One line will start the network configuration that has been set up. (/opt/GoIoT/DinGo/bin/network/rn_restart_router.sh)
- One will try to synchronize and adjust the software and hardware clocks on the system. (/opt/GoIoT/DinGo/bin/ntp/rn_adjust_clocks.sh)
Some lines are also added as dormant. They can be enabled later. They are:
- One regarding the start-up of the 1-wire daemon. (/etc/init.d/owserver)
- One regarding the splash screen when a LCD display is installed on the device. (/Adafruit_Python_SSD1306/examples/DEMO/splash.sh)
- And one regarding the BACNET_IFACE in a hotspot setup. (bridge between Ethernet and wireless)
If the Adafruit package for the DINGO-Stack is also installed, then the line regarding the LCD splash screen will be enabled.